<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");



//获取当前板块的设置
include_once("model/setting.php");



//设置需要搜索的表格的前缀后缀
$detail=select_one_line_all_items($table_prefix."unit","nid = '".$_REQUEST['nid']."'");
 

//企业的日志记录。
$unit_contact_log   =select_lines_all_items($table_Prefix."unit_log","nid desc","unitnid='".$_REQUEST ['nid']."'","");



//获取本企业的所有联系人
$unit_contactor=select_lines_all_items($table_Prefix."member","nid desc","unitnid= '".$_REQUEST ['nid']."'","20");
$unit_contactor_list=transform_2darray_in_1darray_with_new_key($unit_contactor,"nid","name");



//把设置种的标签拆成数组，用于循环比较
$tag_array = explode(";", $unit_setting['tag']);


//把用户的标签拆成数组，用于比较
$now_unit_tag_array=explode(",",$detail['tag']);
//把用户的评级拆成数组，用于比较
$now_unit_rank_array=explode(",",$detail['rank']);



//拆成数组，用于循环比较
$rank_array = explode(";", $unit_setting['rank']);



//获取所有联系人的互动记录
$member_contact_log   =select_lines_all_items($table_Prefix."member_contact_log","nid desc","unitnid='".$_REQUEST ['nid']."'","");



//员工 未做数据筛选。全部都显示
$employee_list = select_lines_all_items($table_Prefix . "employee", "nid desc", "", "0");

$now_employee= select_one_line_all_items($table_Prefix."employee","nid = '".$detail['agentnid']."'");


//获取所有报价的内容
$quotationlist=select_lines_all_items($table_Prefix."quotation_detail","nid desc","unit_nid='".$_REQUEST ['nid']."' group by case_nid","");




?>


















